package com.zero.qth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zero.common.annotation.excel.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class PaymentVo {

    /** 流水ID */
    @Excel(name = "流水ID")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponUserId;

    /** 类型（0支付 1退款） */
    @Excel(name = "类型", readConverterExp = "0=支付,1=退款")
    private String type;

    /** 优惠券金额 */
    @Excel(name = "优惠券金额")
    private Long couponAmount;

    /** 总金额 */
    @Excel(name = "总金额")
    private Double totalAmount;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Double payAmount;

    /** 支付渠道（0微信 1支付宝 2银行卡） */
    @Excel(name = "支付渠道", readConverterExp = "0=微信,1=支付宝,2=银行卡")
    private Integer payChannel;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 回调时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回调时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date refundTime;

    /*连表字段*/
    private String username;
    private String couponName;
}
